fix: Send read marker only when session is active - #19097
Conversation
7fa910a to
386acb3
Compare
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
386acb3 to
18c61e9
Compare
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
18c61e9 to
7f7a20b
Compare
|
I ran into this too, and ended up building an AI-assisted client-side override for my instance (not a patch to Talk). It's been running for the last two weeks and the behaviour has been flawless, so I'm sharing the field data plus what the override does differently, expressed as changes to this branch. I don't want to capture the PR, but instead provide feedback into some gaps I noticed, so they are solved before merging into main. The following message was generated by the AI that build the solution, and reviewed by me, and is ready to feed to another AI if needed (key words are there). What we were seeing (six people, same server, Talk 23.0.9 self-hosted):
What this PR fixes: the read marker no longer follows document visibility, so once the session is inactive the client stops deleting the conversation's notifications. That's the "delivered, then withdrawn" half, and it's the important one. What I think is still open, and what my override does instead. Roughly in order of impact:
My analysis and the override were both AI-assisted, so the reasoning deserves your review rather than trust — but the runtime behaviour of the resulting predicate has been solid in daily use for two weeks with six people. Happy to test a build of this branch against the same setup. |
|
Thanks, @TiagoRaposoBR ! 1-2 were deliberate choises in the past to keep session alive, but they indeed shift expectations when tested live. Need to revisit those @SystemKeeper changes are good already, I'll check tomorrow, and would likely merge it as-is and draft a follow-up for these new + my findings |
☑️ Resolves
Since the mechanism is the same as before, I think it should not be risky?
AI (if applicable)
🏁 Checklist